package com.dz.common.core.exception;

import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;

/**
 * 业务异常（数据不存在）
 */
@Setter
@Getter
@NoArgsConstructor
public class NotFoundDataException extends Exception {

    private static final long serialVersionUID = 8426683311429400306L;

    private String message;
    private String operationContent;
    private String[] args;

    public NotFoundDataException(String message) {
        this.message = message;
    }

    public NotFoundDataException(String message, String operationContent) {
        this.message = message;
        this.operationContent = operationContent;
    }

    public NotFoundDataException(String message, String... args) {
        this.message = message;
        this.args = args;
    }

}
